﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SensorMonitor
{
    class KBIN
    {
        byte len;
        byte[] arr;

        
        //=====================
        public byte getLen(){
            return len;
        }
        
        public byte copyTo(byte[] b, byte offset){
            for (int i = 0; i < arr.Length; i++){
                b[offset + i] = arr[i];
            }
            int off = offset + arr.Length;
            return (byte)off;
        }

        /*
        public void copy(string txt, byte[] b, byte offset){
            txt.ToArray();

            for (int i = 0; i < txt.Length; i++)
            {
                b[offset + i] = txt.arr[i];
            }
            
        }*/
        
    }

}
